package com.zjff.mobiletwo.controller;

import com.zjff.mobiletwo.service.FamilyNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin//跨域
@RestController//遵循RestFul
@RequestMapping("v2/Familyname/")
public class FamilyNameController {
    @Autowired
    FamilyNameService familyNameService;

    @GetMapping  ("getall")
    public String getall(){
        return familyNameService.getall();
    }
}
